package com.wg.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wg.api.dao.DataShowDao;
import com.wg.api.domain.PollutionbeanDO;
import com.wg.api.domain.PollutionsDO;
import com.wg.api.service.DataShowService;
import com.wg.common.utils.Query;



@Service
public class DataShowServiceImpl implements DataShowService {
	@Autowired
	private DataShowDao dataShowDao;
	
	@Override
	public PollutionsDO get(Integer id){
		return dataShowDao.get(id);
	}
	
	@Override
	public List<PollutionsDO> list(Map<String, Object> map){
		return dataShowDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return dataShowDao.count(map);
	}
	
	@Override
	public int save(PollutionsDO pollutions){
		return dataShowDao.save(pollutions);
	}
	
	@Override
	public int update(PollutionsDO pollutions){
		return dataShowDao.update(pollutions);
	}
	
	@Override
	public int remove(Integer id){
		return dataShowDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return dataShowDao.batchRemove(ids);
	}

	@Override
	public List<PollutionbeanDO> historyData(Query query) {
		return dataShowDao.historyData(query);
	}
	
}
